package e_adapter.b_design_pattern;

/**
 * 类适配器
 * Created by wug on 2016/6/30 0030.
 */
public class ClassAdapter extends AVLine implements Target {
    private String name = "类适配器";

    public ClassAdapter(String leftAudio, String rightAudio, String vidio) {
        super(leftAudio, rightAudio, vidio);
    }

    public VGALine AV2VGA() {
        getVidio();
        System.out.println("都输出到" + name);
        System.out.println(name + "将av视频信号转换为vga信号");
        return new VGALine("VGA 信号");
    }
}
